<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>家谱制作 - 家族传承</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
</head>
<body class="bg-white">
  <header class="bg-red-500 text-white p-4 flex items-center justify-between">
    <h2 class="text-xl font-semibold">家谱制作</h2>
    <a href="index.html" class="text-white hover:underline"><i class="fas fa-home"></i></a>
  </header>
  <main class="p-4 max-w-3xl mx-auto space-y-6">
    <section class="bg-yellow-100 p-4 rounded shadow space-y-4">
      <h3 class="font-semibold text-gray-700">成员信息录入</h3>
      <form class="grid grid-cols-1 md:grid-cols-2 gap-4">
        <input type="text" placeholder="姓名" class="border p-2 rounded" />
        <input type="text" placeholder="关系 (如: 父亲, 兄弟)" class="border p-2 rounded" />
        <input type="date" placeholder="出生日期" class="border p-2 rounded" />
        <input type="date" placeholder="去世日期" class="border p-2 rounded" />
        <select class="border p-2 rounded">
          <option>性别</option>
          <option>男</option>
          <option>女</option>
          <option>其他</option>
        </select>
        <input type="file" accept="image/*" class="border p-2 rounded" />
        <textarea placeholder="多媒体说明 (音频/视频链接)" class="border p-2 rounded md:col-span-2"></textarea>
        <button type="submit" class="md:col-span-2 bg-red-500 text-white py-2 rounded hover:bg-red-600 transition">添加成员</button>
      </form>
    </section>
    <section class="bg-gray-100 p-4 rounded shadow">
      <h3 class="font-semibold text-gray-700 mb-2">家族树预览</h3>
      <div class="border h-96 bg-white flex items-center justify-center">
        <img src="https://source.unsplash.com/seed/family-tree-600x400" alt="家族树预览" class="object-contain max-w-full max-h-full" />
      </div>
    </section>
    <section class="text-center space-x-4">
      <button class="bg-yellow-400 text-white px-6 py-2 rounded hover:bg-yellow-500 transition"><i class="fas fa-file-import mr-2"></i>导入 GEDCOM</button>
      <button class="bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 transition"><i class="fas fa-file-export mr-2"></i>导出 GEDCOM</button>
    </section>
  </main>
</body>
</html>